import request from '@/utils/request'

// 查询viper列表
export function listViper(query) {
  return request({
    url: '/system/viper/list',
    method: 'get',
    params: query
  })
}

// 查询viper详细
export function getViper(vipID) {
  return request({
    url: '/system/viper/' + vipID,
    method: 'get'
  })
}

// 新增viper
export function addViper(data) {
  return request({
    url: '/system/viper',
    method: 'post',
    data: data
  })
}

// 修改viper
export function updateViper(data) {
  return request({
    url: '/system/viper',
    method: 'put',
    data: data
  })
}

// 删除viper
export function delViper(vipID) {
  return request({
    url: '/system/viper/' + vipID,
    method: 'delete'
  })
}
